using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN MenusServiceBase****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:12/09/2010 36:08:02</para>
	/// <para>Class Name: MenusServiceBase</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class MenusService : IMenusService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: Menu_ID</para>
		/// <para>Output: MenusEntity</para>
		///</summary>
		public MenusEntity SelectOne(int Menu_ID){
			MenusDAO dao = new MenusDAO();
			return dao.SelectOne(Menu_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of MenusEntity</para>
		///</summary>
		public List<MenusEntity> SelectAll(){
			MenusDAO dao = new MenusDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			MenusDAO dao = new MenusDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of MenusEntity</para>
		///</summary>
		public List<MenusEntity> SelectAllFilter(string strFilter){
			MenusDAO dao = new MenusDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			MenusDAO dao = new MenusDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: Save</para>
		/// <para>Input: MenusEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(MenusEntity o){
			MenusDAO dao = new MenusDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: Save</para>
		/// <para>Input: MenusEntity</para>
		/// <para>Output: MenusEntity</para>
		///</summary>
		public MenusEntity SaveRet(MenusEntity o){
			MenusDAO dao = new MenusDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of MenusEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<MenusEntity> list){
			MenusDAO dao = new MenusDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of MenusEntity</para>
		/// <para>Output: List of MenusEntity</para>
		///</summary>
		public List<MenusEntity> SaveListRet(List<MenusEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: Update</para>
		/// <para>Input: MenusEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(MenusEntity o){
			MenusDAO dao = new MenusDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of MenusEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<MenusEntity> list){
			MenusDAO dao = new MenusDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: UpdateMenuName</para>
		/// <para>Input: NewMenuName,Menu_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMenuName(string NewMenuName,int Menu_ID){
			MenusDAO dao = new MenusDAO();
			return dao.UpdateMenuName(NewMenuName,Menu_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: UpdateMenuTitle</para>
		/// <para>Input: NewMenuTitle,Menu_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMenuTitle(string NewMenuTitle,int Menu_ID){
			MenusDAO dao = new MenusDAO();
			return dao.UpdateMenuTitle(NewMenuTitle,Menu_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: UpdateIcon</para>
		/// <para>Input: NewIcon,Menu_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateIcon(string NewIcon,int Menu_ID){
			MenusDAO dao = new MenusDAO();
			return dao.UpdateIcon(NewIcon,Menu_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: UpdateURL</para>
		/// <para>Input: NewURL,Menu_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateURL(string NewURL,int Menu_ID){
			MenusDAO dao = new MenusDAO();
			return dao.UpdateURL(NewURL,Menu_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: UpdateModule_ID</para>
		/// <para>Input: NewModule_ID,Menu_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateModule_ID(int NewModule_ID,int Menu_ID){
			MenusDAO dao = new MenusDAO();
			return dao.UpdateModule_ID(NewModule_ID,Menu_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: UpdateMenuParent_ID</para>
		/// <para>Input: NewMenuParent_ID,Menu_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMenuParent_ID(int NewMenuParent_ID,int Menu_ID){
			MenusDAO dao = new MenusDAO();
			return dao.UpdateMenuParent_ID(NewMenuParent_ID,Menu_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: UpdateMenuIndex</para>
		/// <para>Input: NewMenuIndex,Menu_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMenuIndex(int NewMenuIndex,int Menu_ID){
			MenusDAO dao = new MenusDAO();
			return dao.UpdateMenuIndex(NewMenuIndex,Menu_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: Delete</para>
		/// <para>Input: MenusEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(MenusEntity o){
			MenusDAO dao = new MenusDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: Menu_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int Menu_ID){
			MenusDAO dao = new MenusDAO();
			return dao.DeleteByID(Menu_ID);
		}
		#endregion

		#region Select join to MenusModules functions
		#endregion

		#region Select join to Menus functions
		#endregion

		#region Select join to Modules functions
		#endregion

		#region Select,delete by Menu_ID functions
		#endregion

		#region Select,delete by Module_ID functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllByModule_ID</para>
		/// <para>Input: Module_ID</para>
		/// <para>Output: List of MenusEntity</para>
		///</summary>
		public List<MenusEntity> SelectAllByModule_ID(int Module_ID){
			MenusDAO dao = new MenusDAO();
			return dao.SelectAllByModule_ID(Module_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllDSByModule_ID</para>
		/// <para>Input: Module_ID</para>
		/// <para>Output: MenusDataSet</para>
		///</summary>
		public DataSet SelectAllDSByModule_ID(int Module_ID){
			MenusDAO dao = new MenusDAO();
			return dao.SelectAllDSByModule_ID(Module_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllByModule_ID</para>
		/// <para>Input: Module_ID</para>
		/// <para>Output: List of MenusEntity</para>
		///</summary>
		public List<MenusEntity> SelectAllByModule_IDFilter(string strFilter,int Module_ID){
			MenusDAO dao = new MenusDAO();
			return dao.SelectAllByModule_IDFilter(strFilter,Module_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllDSByModule_ID</para>
		/// <para>Input: Module_ID</para>
		/// <para>Output: MenusDataSet</para>
		///</summary>
		public DataSet SelectAllDSByModule_IDFilter(string strFilter,int Module_ID){
			MenusDAO dao = new MenusDAO();
			return dao.SelectAllDSByModule_IDFilter(strFilter,Module_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: DeleteByModule_ID</para>
		/// <para>Input: Module_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByModule_ID(int Module_ID){
			MenusDAO dao = new MenusDAO();
			return dao.DeleteByModule_ID(Module_ID);
		}
		#endregion

		#region Select,delete by MenuParent_ID functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllByMenuParent_ID</para>
		/// <para>Input: MenuParent_ID</para>
		/// <para>Output: List of MenusEntity</para>
		///</summary>
		public List<MenusEntity> SelectAllByMenuParent_ID(int MenuParent_ID){
			MenusDAO dao = new MenusDAO();
			return dao.SelectAllByMenuParent_ID(MenuParent_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllDSByMenuParent_ID</para>
		/// <para>Input: MenuParent_ID</para>
		/// <para>Output: MenusDataSet</para>
		///</summary>
		public DataSet SelectAllDSByMenuParent_ID(int MenuParent_ID){
			MenusDAO dao = new MenusDAO();
			return dao.SelectAllDSByMenuParent_ID(MenuParent_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllByMenuParent_ID</para>
		/// <para>Input: MenuParent_ID</para>
		/// <para>Output: List of MenusEntity</para>
		///</summary>
		public List<MenusEntity> SelectAllByMenuParent_IDFilter(string strFilter,int MenuParent_ID){
			MenusDAO dao = new MenusDAO();
			return dao.SelectAllByMenuParent_IDFilter(strFilter,MenuParent_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllDSByMenuParent_ID</para>
		/// <para>Input: MenuParent_ID</para>
		/// <para>Output: MenusDataSet</para>
		///</summary>
		public DataSet SelectAllDSByMenuParent_IDFilter(string strFilter,int MenuParent_ID){
			MenusDAO dao = new MenusDAO();
			return dao.SelectAllDSByMenuParent_IDFilter(strFilter,MenuParent_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: DeleteByMenuParent_ID</para>
		/// <para>Input: MenuParent_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByMenuParent_ID(int MenuParent_ID){
			MenusDAO dao = new MenusDAO();
			return dao.DeleteByMenuParent_ID(MenuParent_ID);
		}
		#endregion

		#region Select,Delete by Module_IDMenuParent_ID
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllByModule_IDMenuParent_ID</para>
		/// <para>Input: Module_ID,MenuParent_ID</para>
		/// <para>Output: List of MenusEntity</para>
		///</summary>
		public List<MenusEntity> SelectAllByModule_IDMenuParent_ID(int Module_ID,int MenuParent_ID)
		{
			MenusDAO dao = new MenusDAO();
			return dao.SelectAllByModule_IDMenuParent_ID(Module_ID,MenuParent_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllDSByModule_IDMenuParent_ID</para>
		/// <para>Input: Module_ID,MenuParent_ID</para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSByModule_IDMenuParent_ID(int Module_ID,int MenuParent_ID)
		{
			MenusDAO dao = new MenusDAO();
			return dao.SelectAllDSByModule_IDMenuParent_ID(Module_ID,MenuParent_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllByModule_IDMenuParent_ID</para>
		/// <para>Input: Module_ID,MenuParent_ID</para>
		/// <para>Output: List of MenusEntity</para>
		///</summary>
		public List<MenusEntity> SelectAllByModule_IDMenuParent_IDFilter(string strFilter,int Module_ID,int MenuParent_ID)
		{
			MenusDAO dao = new MenusDAO();
			return dao.SelectAllByModule_IDMenuParent_IDFilter(strFilter,Module_ID,MenuParent_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllDSByModule_IDMenuParent_ID</para>
		/// <para>Input: Module_ID,MenuParent_ID</para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSByModule_IDMenuParent_IDFilter(string strFilter,int Module_ID,int MenuParent_ID)
		{
			MenusDAO dao = new MenusDAO();
			return dao.SelectAllDSByModule_IDMenuParent_IDFilter(strFilter,Module_ID,MenuParent_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: DeleteByModule_IDMenuParent_ID</para>
		/// <para>Input: Module_ID,MenuParent_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByModule_IDMenuParent_ID(int Module_ID,int MenuParent_ID)
{
			MenusDAO dao = new MenusDAO();
			return dao.DeleteByModule_IDMenuParent_ID(Module_ID,MenuParent_ID);
		}
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END MenusWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

